<?php
declare(strict_types=1);

namespace App\Models\User\Image;

use App\Models\User\User\UserModel;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class ImageCollection extends \App\Models\Image\ImageCollection
{
    public function image(): BelongsTo
    {
        return $this->belongsTo(ImageModel::class, "image_uid", "uid");
    }

    public function user(): BelongsTo
    {
        return $this->belongsTo(UserModel::class, "user_uid", "uid");
    }
}
